/**
 * @ author: 汪孟苹
 */
define([],function(){
	var tpl = {};

	// taskList
	tpl.initTabs = function(){
		var html = "";
		html += tabs();
		return html;
	}
	// 离线问卷记录
	tpl.initRight = function(){
		var html = "";
		html += right();
		return html;
	}
	
	var tabs = function(){
		return 	'<script id="tpl_specialNurse_tabs" type="text/html">'+
				'	<div class="pageTab clearfix">'+
				'		<div class="btn-toolbar" role="toolbar">'+
				'  			<div class="btn-group btn-task-group" role="group">'+
				'   			{{each data as value i}}'+
				'				<button type="button" seqNo="{{i}}" templVersion="{{value.templVersion}}" templId="{{value.templId}}" taskId="{{value.taskId}}" class="btn btn-click">{{value.templName}}</button>'+
				'   			{{/each}}'+
				'			</div>'+
				'		</div>'+
				'	</div>'+
				'</script>';
	}
	var right = function(){
		return 	'<script id="tpl_specialNurse_right" type="text/html">'+
				'	{{if show}}'+
				'	<ul class="archive-right">'+
				'		{{each list as value i}}'+
				'			{{if value.info && value.info.type != 2}}'+
				'			<li class="row">'+
				'				<div class="col-sm-11 ellipsis-1">{{if value.info.patientName}}{{value.info.patientName}}{{else}}（未填写姓名）{{/if}}（{{if value.params.questiones.Pub12x00010}}{{value.params.questiones.Pub12x00010}}{{else}}{{value.info.taskName}}{{/if}}）</div>'+
				'				<div class="col-sm-1 text-right" style="display:none;"><i class="fa fa-times" aria-hidden="true"></i></div>'+
				'			</li>'+
				'			{{/if}}'+
				'		{{/each}}'+
				'	</ul>'+
				'	{{else}}'+
				'		<div class="noClinicToday">今日无门诊~！</div>'+
				'	{{/if}}'+
				'</script>';
	}

	return tpl;
});